package com.shenmazong.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.shenmazong.pojo.TbTaskSkillLibrary;
import com.shenmazong.service.TbTaskSkillLibraryService;
import com.shenmazong.mapper.TbTaskSkillLibraryMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class TbTaskSkillLibraryServiceImpl extends ServiceImpl<TbTaskSkillLibraryMapper, TbTaskSkillLibrary>
implements TbTaskSkillLibraryService{
    @Autowired
    TbTaskSkillLibraryMapper tbTaskSkillLibraryMapper;

    @Override
    public PageInfo findTaskSkillLibraryList(Integer pageNum, Integer pageSize, Object taskSkillLibrary) {
        PageHelper.startPage(pageNum,pageSize);
        List<TbTaskSkillLibrary> tbTaskSkillLibraries=tbTaskSkillLibraryMapper.findTaskSkillLibraryList(taskSkillLibrary);
        PageInfo<TbTaskSkillLibrary> libraryPageInfo = new PageInfo<>(tbTaskSkillLibraries);
        return libraryPageInfo;
    }
}




